<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<input type="button" class="isue_inp_btn" value="添加图片" />
	<input type="text" id="issue_input_text" class="issue_text" />
	<input type="file" id="file" name="file" class="issue_file"/>

</body>
<script type="text/javascript" src="web/jquery.min.js"></script>
<script type="text/javascript" src="web/ajaxfileupload.js"></script>
<script type="text/javascript">
function fff(){
	$.ajaxFileUpload({
	    url : "/JavaWeb/img/upload.do",
	    secureuri : false,//是否需要安全协议
	    fileElementId : 'file',
	    type : 'POST', //文件提交的方式
	    contentType:"multipart/form-data",
	    cache : false, //是否进行页面缓存
	    async : true, // 是否同步提交
	    success : function(data) { 
	    	 alert(data)
	    }
	 }); 
}       
$(document).on("change","#file",function(){
	alert("???");
	fff();
});
</script>
</html>